home *** CD-ROM | disk | FTP | other *** search
-
- function document.ButtonForm.onsubmit(){
-
- var noChecks=true;
- var componentValue,paramName,paramValue;
-
- for (var i=0; i<document.ButtonForm.elements.length; i++)
- {
- if (document.ButtonForm.elements[i].type.toLowerCase() == "hidden") {
- parent.t1.ApgtsX21.SetPair(document.ButtonForm.elements[i].name,
- document.ButtonForm.elements[i].value);
- }
- if (document.ButtonForm.elements[i].type.toLowerCase() == "radio") {
- if (document.ButtonForm.elements[i].checked == true) {
- paramName= document.ButtonForm.elements[i].name;
- paramValue= document.ButtonForm.elements[i].value;
- noChecks= false;
- parent.t1.ApgtsX21.SetPair(document.ButtonForm.elements[i].name,
- document.ButtonForm.elements[i].value);
- }
- }
- }
-
- componentValue = document.ButtonForm.elements[0].value; // The hidden trouble shooter name is the first item in the form.
-
- if (noChecks) {
- parent.t1.ApgtsX21.NotifyNothingCkecked("");
- return (false);
- }
- else if ((paramName=="TShootGotoMicroSoft") && (paramValue=="104"))
- document.location= parent.t1.ApgtsX21.PreLoadURL("");
- else {
- var strOut = parent.t1.ApgtsX21.RunQuery2(componentValue, paramName, paramValue);
- document.open();
- document.write(strOut);
- document.close();
- }
-
- return false;
- }
-
- //******Re-usable text *********************************************************************************************
- var reused = document.all.tags("DIV");
-
- for (var i=0; i< reused.length; i++)
- if (reused[i].className.toLowerCase()== "reuse2") fillInText(reused[i].id);
-
- function fillInText(sFile) {
- var spaces= /\s/g
- var sRecordID,sReusableText;
-
- if(isLoaded) {
- sRecordID= sFile;
- sRecordID= sRecordID.toLowerCase();
- sRecordID= sRecordID.replace(spaces,"");
-
- sReusableText= eval(sRecordID);
-
- reused[i].innerHTML= sReusableText;
- }
- }
-
- // if no buttons are checked on the form, checks the first button - accessibility feature
- var buttonChecked=false;
-
- for (var i=1; i<ButtonForm.elements.length-1; i++)
- if (ButtonForm.elements[i].checked == true) buttonChecked= true;
-
- for (var i=1; i<ButtonForm.elements.length-1; i++)
- if (!buttonChecked && ButtonForm.elements[i].type=="radio") {
- ButtonForm.elements[i].checked=true;
- buttonChecked= true;
- };
-
-
- function previous() {
- var strOut = parent.t1.ApgtsX21.BackUp();
- history.back();
- }
-
- function starter(){
- var strOut = parent.t1.ApgtsX21.ProblemPage();
- location.replace(location.href);
- }
-